package com.zhuoyue.biz.core.api.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhuoyue.biz.core.api.domain.Geofencing;
import com.zhuoyue.biz.core.api.domain.custom.HomeAndSceneDO;
import com.zhuoyue.biz.core.api.domain.custom.GeofencingMessageDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author wjming
 * @ClassName: GeofencingMapper
 * @Description: 地理围栏数据层
 * @Date 2021-07-07 14:44
 */
public interface GeofencingMapper extends BaseMapper<Geofencing> {
    /**
     * 通过网关ID获取家庭ID，场景名称、场景图片等信息
     *
     * @param gatewayId
     * @return
     */
//    HomeAndSceneDO selectHomeAndSceneMessage(@Param("gatewayId") String gatewayId, @Param("sceneId") String sceneId);

    /**
     * 通过网关ID获取家庭ID，场景名称、场景图片等信息
     *
     * @param gatewayId
     * @return
     */
    List<GeofencingMessageDO> selectHomeAndSceneMessage(@Param("gatewayId") String gatewayId);
}